<?php require_once('../../core/import.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
 	<script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript">
        //该脚本仅用于演示，具体使用时归入.js文件中。
        window.addEvent('load',function()
        {
            $('Submit').addEvent('click', function(e)
            {
                if($('Title').value=='')
                {
                    malert('请填写标题');           //普通
                    //malert('请填写标题',800);     //设计宽度的
                    //malert('请填写标题',800,600);     //设计宽度和高度的
                    return false;
                }
                
            });
        });
    </script>
</head>

<body>
    <form method="post" action="action.php">
        <input type="text" id="Title" name="Title" value="<?php echo @$_POST['Title'];?>"/>
        <input id="Submit" name="Submit" type="submit" value="提交" class="button" />
    </form>
</body>
</html>